
<?
$request = $_REQUEST['frame'];
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : 66;

$code = $_lang == 'vn' ? 'vn_'.$request : 'vn_'.$request;

//$parentWhere = "parent = (select id from tbl_content_category where code='$code')";
//$parentWhere = "parent = (select id from tbl_content_category where code='$code')";
//echo $parentWhere;

$idWhere = "id = $id";
//echo $idWhere;

$row = getRecord("tbl_content",$idWhere);

// switch ($request) {
		// case intro	:	$text = "&nbsp;&nbsp;&nbsp;Giới thiệu"; break;
		// case encourage	:	$text = "&nbsp;&nbsp;&nbsp;Khuyến mại"; break;
		// case service	:	$text = "&nbsp;&nbsp;&nbsp;Dịch vụ"; break;
		// case partner	:	$text = "&nbsp;&nbsp;&nbsp;Sim số"; break;
	// }
	if ($request == "intro")
		$text = "&nbsp;&nbsp;&nbsp;Giới thiệu";

?>



<div class="timedetail">Ngày <?=date('d/m/Y')?></div>
<div class="titledetail"><?=$row['name']?></div>
<div class="content">
	<?=$row['detail']?>
</div>
